﻿// Entity Framework MapTileStore - http://maptilestore.codeplex.com/
// Copyright © 2012 Majid Qaraee
// Licensed under the Microsoft Public License (Ms-PL)

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace MapEntity
{
    public class Provider
    {
        [Key]
        public int Id { get; set; }

        [MaxLength(100)]
        [Required]
        public string SourceName { get; set; }

        [MaxLength(256)]
        [Required]
        public string TileSource { get; set; }

        [MaxLength(500)]
        public string Description { get; set; }

        [Required]
        public int MinZoomLevel { get; set; }

        [Required]
        public int MaxZoomLevel { get; set; }
        
        public int? MaxParallelDownloads { get; set; }
        
        public bool? HasDarkBackground { get; set; }

        public virtual ICollection<Tile> Tiles { get; set; }
    }
}
